FROM image.midea.com/g-aps2.0/memoryscope:v1.1
MAINTAINER chenfufei

RUN mkdir -p /app/
RUN mkdir -p /app/frp/

WORKDIR /app
ENV TZ Asia/Shanghai
ADD ./frp/frpc /app/frp/frpc
ADD ./frp/frpc.toml /app/frp/frpc.toml
ADD ./start_memory.sh /app/start_memory.sh
RUN chmod +x /app/frp/frpc
RUN chmod +x /app/start_memory.sh
EXPOSE 12000/tcp
WORKDIR /memory_scope_project
ENTRYPOINT ["sh", "/app/start_memory.sh"]